home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Apple / Apple II TNs(Text).cpt / Apple II TNs(Text) / IIGS / TN.IIGS.040 / TN.IIGS.040
Encoding:
Text File  |  1989-11-15  |  1.9 KB  |  43 lines  |  [TEXT/pdos]

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6.  
  7. Apple IIGS
  8. #40:    VBL Signal
  9.  
  10. Revised by:    Dave Lyons                                           July 1989
  11. Written by:    Rob Moore & Rilla Reynolds                            May 1988
  12.  
  13. This Technical Note discusses reading the VBL signal to accomplish smooth 
  14. animation.
  15. Changes since November 1988:  Noted that vertical blanking does not begin 
  16. when you might expect on the Apple IIGS and removed references to the Apple 
  17. IIc.
  18. _____________________________________________________________________________
  19.  
  20. Applications can accomplish smooth animation on the Apple IIGS and Apple IIe 
  21. by changing the data on the screen during the time the system is tracing the 
  22. unusable area of the display.  This time is called "vertical blanking" or 
  23. "VBL" in this Note.  You can determine the state of the VBL signal by reading 
  24. location $C019.
  25.  
  26. On the Apple IIGS, the $C019 sense of the VBL signal differs from the IIe.  On 
  27. the IIGS, the screen is blanked when the most significant bit of $C019 is 
  28. high (greater than 127 or $7F), while on the IIe, the screen is blanked when 
  29. the bit is low (less than 128 or $80).
  30.  
  31. A VBL interrupt also is available on Apple II systems via the Apple IIGS 
  32. Miscellaneous Tool Set or mouse firmware, the Apple IIe mouse card, and the 
  33. Apple IIc mouse firmware.
  34.  
  35. On the Apple IIGS, vertical blanking begins at scan line 192 regardless of the 
  36. display mode.  When the Super Hi-Res display is visible, vertical blanking 
  37. begins eight scan lines before the bottom of the display area.  If the VBL 
  38. interrupt is enabled, it triggers at scan line 192.
  39.  
  40.  
  41. Further Reference
  42. _____________________________________________________________________________
  43.     o    Apple IIGS Technical Note #39, Mega II Video Counters